package nl.saxion.security.gui.elements;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintStream;

import javax.swing.DefaultListModel;

public class ConsoleReader extends Thread {
	private DefaultListModel list;
	public ConsoleReader(DefaultListModel alist) {
		
		this.list = alist;		
	}
	
	public void fillList() {
		//ByteArrayOutputStream os = new ByteArrayOutputStream();
		//PrintStream printStream = new PrintStream(os);
		//System.setOut(printStream);		
		//while(true) {			
			try {
				
					//sleep(5000);
				
				//String test = os.toString("UTF8");
				
				//list.add(0, test);				
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();				
			}
		//}
			
			
	}
	
	public void run()
	{
		try {
			//fillList();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
